#include "slcurve.h"
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <cstddef>
using namespace std;

void slcurve::modify(const double sn, const bool flag)
{
    cout << sn << endl;
    has_nfl_left_ = has_nfl_left_ || flag;
    has_nfl_right_ = has_nfl_right_ && flag;
    cout << "has_nfl_left: " << has_nfl_left_ << endl;
    cout << "has_nfl_right: " << has_nfl_right_ << endl;
}

std::size_t slcurve::length()
{
    if (!lengthIsValid)
    {
        textLength = strlen(pText);
        lengthIsValid = true;
    }
    return textLength;
}